package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.MaterialCustomEntity;
import com.ls.lserp.modules.common.entity.UploadFile;
@MyBatisDao
public interface MaterialEntityMapper extends CrudDao<MaterialCustomEntity>{
    int deleteByPrimaryKey(Long materialId);

    int insert(MaterialCustomEntity record);

    int insertSelective(MaterialCustomEntity record);

    MaterialCustomEntity selectByPrimaryKey(Long materialId);

    int updateByPrimaryKeySelective(MaterialCustomEntity record);

    int updateByPrimaryKeyWithBLOBs(MaterialCustomEntity record);

    int updateByPrimaryKey(MaterialCustomEntity record);
    
    //获取平台自带面料数据
    List<MaterialCustomEntity> findCustomMaterialList(MaterialCustomEntity materialEntity);
    //平台自带面料数据插入ERP
    int insertCustomMaterial(MaterialCustomEntity materialEntity);
    //平台自带面料图片数据插入ERP
    int saveUploadFileCustom(UploadFile uploadFile);
    //
    int updateStatus(MaterialCustomEntity materialEntity);
}